<link rel="stylesheet" href="modules/VoteAlert/pnjavascript/datepicker/development-bundle/themes/base/jquery.ui.all.css">
<script src="modules/VoteAlert/pnjavascript/datepicker/development-bundle/jquery-1.5.1.js"></script>
<script src="modules/VoteAlert/pnjavascript/datepicker/development-bundle/ui/jquery.ui.core.js"></script>
<script src="modules/VoteAlert/pnjavascript/datepicker/development-bundle/ui/jquery.ui.widget.js"></script>
<script src="modules/VoteAlert/pnjavascript/datepicker/development-bundle/ui/jquery.ui.datepicker.js"></script>

	<script>
	$(function() {
      $( "#datepicker" ).datepicker({
        changeMonth: true,
        changeYear: true,
        showOn: "button",
        dateFormat: 'yy-mm-dd',
        buttonImage: "modules/VoteAlert/pnjavascript/datepicker/development-bundle/demos/datepicker/images/calendar.gif",
        buttonImageOnly: true
		});
	});

	$(function() {
      $( "#datepicker2" ).datepicker({
        changeMonth: true,
        changeYear: true,
        showOn: "button",
        dateFormat: 'yy-mm-dd',
        buttonImage: "modules/VoteAlert/pnjavascript/datepicker/development-bundle/demos/datepicker/images/calendar.gif",
        buttonImageOnly: true
		});
	});


</script>

<h1>Vote Data Add/Edit</h1>
<div class="buttons">
  <a href="<!--[pnmodurl modname='VoteAlert' type='admin' func='page' ctrl='home']-->" class="regular">Vote Alert Main Page</a>
</div>
<br /><br />
<form action="<!--[pnmodurl modname='VoteAlert' type='adminform' func='submit' ctrl='VoteData']-->" method="POST" class="z-form">
<fieldset>
<legend>Vote Data Add/Edit</legend>  
  <input type="hidden" name="form[id]" value="<!--[$smarty.get.id]-->"/>
  <div class="z-formrow"> 
    <label>Title : </label>
    <input name="form[title]" type="text" value="<!--[$form.title]-->"/>
  </div>
  <div class="z-formrow"> 
    <label>Vote Type : </label>
    <!--[selector_object_array modname="VoteAlert"
    class="VoteType"
    field="id"
    displayField="name"
    name="form[votetype_id]"
    selectedValue=$form.votetype_id
    ]-->
  </div>
  <div class="z-formrow"> 
    <label>Vote Date : </label>
    <input name="form[date]" type="text" id="datepicker" value="<!--[$form.date]-->"/>
  </div>
  <div class="z-formrow">
    <label>Tambon : </label>
    <!--[selector_object_array modname="VoteAlert"
    class="Tambon"
    field="id"
    displayField="name"
    name="form[tambon_id]"
    selectedValue=$form.tambon_id
    ]-->
  </div>
  <div class="z-formrow">
    <label>District : </label>
    <!--[selector_object_array modname="VoteAlert"
    class="district"
    field="id"
    displayField="name"
    name="form[district_id]"
    selectedValue=$form.district_id
    ]-->
  </div>
  <div class="z-formrow">
    <label>Province : </label>
    <!--[selector_object_array modname="VoteAlert"
    class="Province"
    field="id"
    displayField="name"
    name="form[province_id]"
    selectedValue=$form.province_id
    ]-->
  </div>

  <div class="z-formrow"> 
    <label>Lat : </label>
    <input name="form[lat]" type="text" value="<!--[$form.lat]-->"/>
  </div>
  <div class="z-formrow"> 
    <label>Lon : </label>
    <input name="form[lon]" type="text" value="<!--[$form.lon]-->"/>
  </div>
  <div class="z-formrow"> 
    <label>Amount President : </label>
    <input name="form[amount_president]" type="text" value="<!--[$form.amount_president]-->"/>
  </div>
  <div class="z-formrow"> 
    <label>Amount member : </label>
    <input name="form[amount_member]" type="text" value="<!--[$form.amount_member]-->"/>
  </div>
  <div class="z-formrow"> 
    <label>Comment : </label>
    <textarea name="form[comment]" type="text"/><!--[$form.comment]--></textarea>
  </div>
</fieldset>
<div class="buttons"> 
  <button type="submit" title="Submit" class="positive">Submit</button>
  <button type="reset" title="Reset" class="negative">Reset</button>
</div>
</form>
